package soul.web.vo;

import org.activiti.engine.impl.persistence.entity.UserEntity;

/**
 * Created by admin on 2017/2/22.
 */
public class FormIdentify {
    private String username;
    private String password;

    public UserEntity toDomain(){
        UserEntity userEntity = new UserEntity();
        userEntity.setId(this.username);
        userEntity.setFirstName(this.username);
        userEntity.setPassword(this.password);
        return userEntity;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
